package com.wn.common.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TravelEvalute {
    private Integer id;

    private Integer userId;

    @Size(min=10,message = "评价内容不得小于10个字符！")
    private String evaluteDes;

    @Pattern(regexp = "^\\d{0,3}$",message = "城市id为数字")
    private String cityId;

    private String evaluteComment;

    @NotBlank(message = "评分不得为空!")
    private String evaluteScore;


}
